package com.wk.database.entity;

public class NoDefaultConstructorException extends RuntimeException {
	private static final long serialVersionUID = -5805400555149867494L;

	public NoDefaultConstructorException(Class<?> entity, Exception cause) {
		super("无法创建实体类对象。实体类：" + entity.getName() + "；缺少：无参构造器", cause);
		this.entity = entity.getName();
	}
	
	public String entity; 
}
